package com.hhsj.androidserver;

public abstract class HttpServlet {

    public static final String HTTP_SERVLET = "HttpServlet";

    public void service(HttpServletRequest req, HttpServletResponse rep) throws Exception {
        this.doGet(req, rep);
    }

    protected abstract void doGet(HttpServletRequest req, HttpServletResponse rep) throws Exception;

    protected abstract void doPost(HttpServletRequest req, HttpServletResponse rep) throws Exception;
}